<?php /* Smarty version 2.6.20, created on 2017-04-12 22:12:15
         compiled from login.htm */ ?>
﻿<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
     <link href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/default/css/space.css?t=<?php echo $this->_tpl_vars['now_time']; ?>
" rel="stylesheet" media="screen" type="text/css" />
        <!-- 中间内容开始 -->
        <div class="bigauto">
            <div class="width_1000">
                <!--登陆开始-->
                <div class="user_space_big">
                    <div class="login_con">
                        <div class="free_enr"><a href="register.php">免费注册</a></div>
                        <div class="login_rig_con">
                            <form action="login.php" onsubmit="return check_data();" method="post" enctype="multipart/form-data">
                                <input type="hidden" name="action" value="submit"/>
                                <table width="350" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td height="40" valign="bottom">登录帐号</td>
                                    </tr>
                                    <tr>
                                        <td height="40"><input type="text" class="text login_name" name="user" id="user" datadef="手机号/用户名" /></td>
                                    </tr>
                                    <tr>
                                        <td height="30" valign="bottom">密码</td>
                                    </tr>
                                    <tr>
                                        <td height="40"><input type="password" class="text login_password" name="password" id="password" /></td>
                                    </tr>
                                    <tr>
                                    <td height="30"><span class="title">验证码：</span></td>
                                    </tr>
                                    <tr>
                                        <td height="40" ><input type="text" name="randcode" id="yzm" class="login_yzm"><span class="yzm_num"><img class="yz_img" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/includes/rand_func.php?rand=<?php echo $this->_tpl_vars['now_time']; ?>
" style="cursor:pointer" title="点击我更换图片" alt="点击我更换图片"></span></td>
                                        <td height="40" align="left" class="hint"></td>
                                    </tr>
                                    <tr>
                                        <td height="40"><input type="submit" value="登 陆" class="login_btn" /></td>
                                    </tr>
                                    <tr>
                                        <td height="40" align="right"><a href="lostmobile.php">忘记密码?</a></td>
                                    </tr>
                                    <tr>
                                        <td height="40">
                                            <span class="login_other_left">其他方式登录：</span>
                                            <span class="login_other_right">
                                                <?php if ($this->_tpl_vars['config']['qq_connect'] == 1): ?>
                                                <a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=<?php echo $this->_tpl_vars['config']['qq_app_id']; ?>
&redirect_uri=<?php echo $this->_tpl_vars['config']['weburl']; ?>
/oauth.php" class="qq" > </a>
                                                <?php endif; ?>
                                                <?php if ($this->_tpl_vars['config']['sina_connect'] == 1): ?>
                                                <a href="<?php echo $this->_tpl_vars['sina_login_url']; ?>
" class="sina"> </a>
                                                <?php endif; ?>
                                                 <?php if ($this->_tpl_vars['config']['wx_connect'] == 1): ?>
                                                <a href="<?php echo $this->_tpl_vars['wx_url']; ?>
" class="wx"> </a>
                                                <?php endif; ?>
                                                <a href="login.php?method=ai_login" class="zfb"> </a>
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                    </tr>
                                </table>
                                <input type="hidden" name="forward" id="forward" value="<?php echo $this->_tpl_vars['referer']; ?>
">
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!--登陆结束-->
        </div>
        <script type="application/javascript">
            $(".yz_img").on('click',function(){
                $(this).attr('src', "<?php echo $this->_tpl_vars['config']['weburl']; ?>
/includes/rand_func.php?rand=" + Math.random());
            });
            $("#loginqq").click(function() {
                var url = siteUrl ;
                window.open(url);
            });
            $("#loginsina").click(function() {
                var url = siteUrl ;
                window.open(url);
            });
            $("#loginweixi").click(function() {
                var url = siteUrl ;
                window.open(url);
            });
            function check_data(){
                if($("#user").val() == ''){
                    alert("用户名不能为空");
                    return false;
                }else if($("#password").val() == ''){
                    alert("密码不能为空");
                    return false;
                }else if($("#yzm").val() == ''){
                    alert("验证码不能为空");
                    return false;
                }else if($("#yzm").val() != ''){
                    code = $("#yzm").val();
                    $.get("<?php echo $this->_tpl_vars['config']['weburl']; ?>
"+'/'+'ajax_back_end.php',{yzm:code},function(ret){
                        if(ret == 'false'){
                            alert("验证码错误");
                            return false;
                        } else{
                            return true;
                        }
                    });
                }
                return true;
            }
        </script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>